home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / mflms101.arc / MFLSYS.H < prev    next >
C/C++ Source or Header  |  1989-11-25  |  5KB  |  131 lines

  1. /************************************************************************/
  2. /*                                                                      */
  3. /*  MFLSYS header file                                                  */
  4. /*                                                                      */
  5. /*  Defines and function prototypes for printer access, serial          */
  6. /*  communications, gameport access, and miscellaneous system functions.*/
  7. /*                                                                      */
  8. /*  Copyright 1989 by Robert B. Stout dba MicroFirm                     */
  9. /*  All rights reserved                                                 */
  10. /*                                                                      */
  11. /*  Copyright 1986, 1987 by S.E. Margison                               */
  12. /*                                                                      */
  13. /*  Compiled by QC 2.0 for use with MSC 5.1 or QC 2.0 or later.         */
  14. /*                                                                      */
  15. /************************************************************************/
  16.  
  17. #ifndef MFL_SYS_H
  18. #define MFL_SYS_H
  19.  
  20. #include <mfldefs.h>
  21.  
  22. #ifndef _Cdecl_
  23.  #ifdef NO_EXT_KEYS
  24.   #define _Cdecl_
  25.  #else
  26.   #define _Cdecl_ cdecl
  27.  #endif
  28. #endif
  29.  
  30. /************************************************************************/
  31. /*                                                                      */
  32. /*  Encrypt/decrypt buffer data                                         */
  33. /*                                                                      */
  34. /************************************************************************/
  35.  
  36. extern char *cryptext;          /* The actual encryption/decryption key */
  37. extern int crypt_ptr;           /* Circular pointer to elements of key  */
  38. extern int crypt_length;        /* Set by caller to strlen(cryptext)    */
  39.  
  40. void    _Cdecl_ crypt(char *);
  41. LOGICAL _Cdecl_ cryptqual(char *, int);
  42.  
  43. /************************************************************************/
  44. /*                                                                      */
  45. /*  Serial communications functions                                     */
  46. /*                                                                      */
  47. /************************************************************************/
  48.  
  49. void    _Cdecl_ setport(int, int),
  50.         _Cdecl_ setdtr(int, int),
  51.         _Cdecl_ setrts(int, int),
  52.         _Cdecl_ writechar(int, int);
  53.  
  54. int     _Cdecl_ readchar(int),
  55.         _Cdecl_ ready_recv(int),
  56.         _Cdecl_ ready_xmt(int),
  57.         _Cdecl_ chkdsr(int),
  58.         _Cdecl_ chkdcd(int),
  59.         _Cdecl_ chkcts(int),
  60.         _Cdecl_ chkring(int),
  61.         _Cdecl_ config_port(unsigned, int, int, int, int);
  62.  
  63. /************************************************************************/
  64. /*                                                                      */
  65. /*  Printer functions                                                   */
  66. /*                                                                      */
  67. /************************************************************************/
  68.  
  69. void    _Cdecl_ pr_putline(char *),
  70.         _Cdecl_ pr_puts(char *),
  71.         _Cdecl_ pr_set(int),
  72.         _Cdecl_ pr_nl(void),
  73.         _Cdecl_ pr_eject(void),
  74.         _Cdecl_ pr_carret(void);
  75.  
  76. int     _Cdecl_ blpr(char, int),
  77.         _Cdecl_ blprstat(int),
  78.         _Cdecl_ pr_putc(char),
  79.         _Cdecl_ PrtSc(void),
  80.         _Cdecl_ getPrtSc_stat(void);
  81.  
  82. /************************************************************************/
  83. /*                                                                      */
  84. /*  Gameport functions                                                  */
  85. /*                                                                      */
  86. /************************************************************************/
  87.  
  88. void            _Cdecl_ init_game(unsigned char),
  89.                 _Cdecl_ clear_game(void),
  90.                 _Cdecl_ debounce(void);
  91.  
  92. unsigned char   _Cdecl_ get_press(void);
  93.  
  94. /************************************************************************/
  95. /*                                                                      */
  96. /*  Error handling functions                                            */
  97. /*                                                                      */
  98. /************************************************************************/
  99.  
  100. void    _Cdecl_ aabort(int),
  101.         _Cdecl_ error(char *);
  102.  
  103. int     _Cdecl_ ctlbrk();
  104.  
  105. /************************************************************************/
  106. /*                                                                      */
  107. /*  Miscellaneous system functions                                      */
  108. /*                                                                      */
  109. /************************************************************************/
  110.  
  111. void    _Cdecl_ get_code_adr(void *, unsigned int *, unsigned int *),
  112.         _Cdecl_ get_data_adr(void *, unsigned int *, unsigned int *);
  113.  
  114. int     _Cdecl_ bdosx(int, void *, char),
  115.     _Cdecl_ _getdi(int),
  116.         _Cdecl_ ibmtype(void);
  117.  
  118. LOGICAL _Cdecl_ ansisys(void);
  119.  
  120. #ifndef COLD
  121.  #define COLD 0
  122. #endif
  123.  
  124. #ifndef WARM
  125.  #define WARM 1
  126. #endif
  127.  
  128. void    _Cdecl_ reboot(int);
  129.  
  130. #endif /* MFL_SYS_H */
  131.